﻿using System.Collections.ObjectModel;
using System.Reflection;

namespace FishSimulation.Model
{
    public class ActorTypeProperties : ModelBase
    {
        public static ActorTypeProperties Instance
        {
            get;
            private set;
        }

        private string[] _PropertyNames;
        public string[] PropertyNames
        {
            get { return _PropertyNames; }
            set
            {
                if (_PropertyNames != value)
                {
                    _PropertyNames = value;
                    this.OnPropertyChanged("PropertyNames");
                }
            }
        }

        public ActorTypeProperties()
        {
            this.PropertyNames = new string[0];
        }

        static ActorTypeProperties()
        {
            Instance = new ActorTypeProperties();
            Instance.PropertyNames = new string[] { 
                "ActorType.Name",
                "ActorType.LifeSpanMinTicks", 
                "ActorType.LifeSpanMaxTicks",
                "ActorType.MaxFoodValue",
                "ActorType.MaxLengthInches",                
                "ActorType.MinLengthInches", 
                "Other.ActorType.Name",
                "Other.ActorType.LifeSpanMinTicks", 
                "Other.ActorType.LifeSpanMaxTicks",
                "Other.ActorType.MaxFoodValue",
                "Other.ActorType.MaxLengthInches",
                "Other.ActorType.MinLengthInches"
            };
        }
    }
}